From: Michael Albinus Date: Tue, 30 Jun 2009 15:23:36 +0000 (+0000) Subject: * net/tramp.el (tramp-default-file-modes) Remove execute permissions. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~11738 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=ac55b93cad8af35587dd8968dde92eff0fca6925;p=emacs.git * net/tramp.el (tramp-default-file-modes) Remove execute permissions. --- diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 9da9e314cd2..84776f7f256 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -2789,8 +2789,9 @@ and gid of the corresponding user is taken. Both parameters must be integers." (defun tramp-default-file-modes (filename) "Return file modes of FILENAME as integer. If the file modes of FILENAME cannot be determined, return the -value of `default-file-modes'." - (or (file-modes filename) (default-file-modes))) +value of `default-file-modes', without execute permissions." + (or (file-modes filename) + (logand (default-file-modes) (tramp-octal-to-decimal "0666")))) (defun tramp-handle-file-directory-p (filename) "Like `file-directory-p' for Tramp files."